Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only copy PG cert to server when postgresql_use_ssl #37

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

p-j-smith
Copy link
Contributor

Currently the XNAT role always attempts to copy to PG cert from the cache:

- name: Get postgres server certificate from cache
ansible.builtin.copy:
src: "{{ database_server_certificate_cache_filename }}"
dest: "{{ postgresql_client.server_certificate_filename }}"
owner: "{{ postgresql_client_ssl_certificate.owner }}"
group: "{{ postgresql_client_ssl_certificate.group }}"
mode: "0600"

This should only be done if postgresql_use_ssl is true

@p-j-smith p-j-smith requested a review from a team January 5, 2024 16:07
paddyroddy
paddyroddy previously approved these changes Jan 5, 2024
@paddyroddy paddyroddy requested a review from a team January 5, 2024 16:38
@paddyroddy paddyroddy merged commit 9807009 into main Jan 5, 2024
3 checks passed
@paddyroddy paddyroddy deleted the fix/xnat-postgresql branch January 5, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants